package com.example.wanxiang.entity;

import jakarta.persistence.Id;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/*
    中间表
    用于多表联合查询
 */

@Document
@Data
public class ArticleAndCom {
    @Id
    private String id ;

    private String articleId ;

    @Field("comment_id")
    private List<String> commentId ;
}
